package com.namo.cchapi.service;

import com.namo.cchapi.entity.WechatMessageEntity;
import com.namo.cchapi.entity.WechatMessageTemplateEntity;
import com.namo.cchapi.entity.WechatUserOpenEntity;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author WangXin
 * @date 2021/4/8 11:02
 */
@Service
public interface WechatService {
    /**
     * 获取模板列表
     * @return
     * @throws Exception
     */
    public List<WechatMessageTemplateEntity> getTemplateList() throws Exception;

    /**
     * 发送信息
     * @param wechatMessageEntity
     * @return
     * @throws Exception
     */
    public WechatMessageEntity sendMessage(WechatMessageEntity wechatMessageEntity) throws Exception;


    /**
     * 获取用户开放信息
     * @param jsCode
     * @return
     * @throws Exception
     */
    public WechatUserOpenEntity getUserOpen(String jsCode) throws Exception;
}
